<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>缩放</title>
    <style>
        body {
            text-align: center;
            padding-top: 200px;
        }
        img {
            transition: all 2s;
        }
        img:hover {
            transform: scale(-2);
        }
    </style>
</head>
<body>
    <img src="../img/cat.jpg" alt="">
</body>
</html>